Skip to main content

Pass Class

Description:

  A class for creating Pass objects.

__call

Type: Metamethod.

Description:

  A metamethod that allows you to create a new Pass object.

Signature:

metamethod __call: function(self: PassClass, vertShader: string, fragShader: string): Pass

Parameters:

ParameterTypeDescription
vertShaderstringThe vertex shader in binary form file string.
fragShaderstringThe fragment shader file string.
A shader file string must be one of the formats:
"builtin:" + theBuiltinShaderName
"Shader/compiled_shader_file.bin"

Returns:

Return TypeDescription
PassA new Pass object.